package com.day08;
import java.util.Scanner;
public class StringTest05 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String line = sc.nextLine();
        String s = revrse(line);
        System.out.println("s:" + s);
    }

    public static String revrse(String line) {
        String ss = "";
        for (int i = line.length() - 1; i >= 0; i--) {
            ss += line.charAt(i);
        }
    return ss;
}
}
